from django.db import models

# Create your models here.


class Author(models.Model):
    aname = models.CharField('作家', max_length=20)


class Wife(models.Model):
    author = models.OneToOneField(Author, on_delete=models.CASCADE)
    wname = models.CharField("妻子", max_length=20)
